package org.rency.crawler.common.response;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.rency.common.utils.domain.Extension;
import org.rency.crawler.common.enums.ReturnCode;

/**
 * 描述: ${TODO}<br>
 * 最近修改时间:2017/8/30 16:18<br>
 *
 * @author CaiyuRen
 * @version V1.0
 * @since 2017/8/30 16:18
 */
public class BaseResponse implements Serializable {

  /**
   * 返回码
   */
  private ReturnCode returnCode;

  /**
   * 返回消息
   */
  private String     returnMessage;

  /**
   * 扩展字段
   */
  private Extension  extension;

  public ReturnCode getReturnCode() {
    return returnCode;
  }

  public void setReturnCode(ReturnCode returnCode) {
    this.returnCode = returnCode;
  }

  public String getReturnMessage() {
    return returnMessage;
  }

  public void setReturnMessage(String returnMessage) {
    this.returnMessage = returnMessage;
  }

  public Extension getExtension() {
    return extension;
  }

  public void setExtension(Extension extension) {
    this.extension = extension;
  }

  @Override
  public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
  }
}
